const wx2my = require('../../wx2my');

const app = getApp();

const WxParse = require('../wxParse/wxParse.js');

Page({
  data: {},
  onLoad: function () {},
  onReady: function () {},
  onShow: function () {
    let that = this;
    app.loading();
    app.wxRequest('attorney_content', {}, function (res) {
      console.log(res);

      if (res.data.code == 1) {
        WxParse.wxParse('article_content', 'html', res.data.data.tel, that, 5);
      } else {
        app.toast(res.data.msg);
      }

      wx2my.hideLoading();
    });
  }
});